package cn.smdq.ch.upms.admin.base.service.impl;

import cn.smdq.ch.common.vo.UserVO;
import cn.smdq.ch.upms.admin.base.mapper.UserMapper;
import cn.smdq.ch.upms.admin.base.entity.User;
import cn.smdq.ch.upms.admin.base.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author shuimo@danqing
 * @since 2019-01-18
 */
@Service
@SuppressWarnings("all")
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    private UserMapper userMapper;

    public UserServiceImpl(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public UserVO findUserByUserName(String userName) {
        return userMapper.selectUserByUserName(userName);
    }
}
